from selenium import webdriver
from selenium.webdriver.common.by import By

class Base():
    def __init__(self,driver):
        self.driver=driver
        # self.driver=webdriver.Chrome()


    def openurl(self,url):
        self.driver.get(url)

    def find_elements(self,loc):
        return self.driver.find_element(*loc)

    def click(self,loc):
        self.find_elements(loc).click()

    def send_keys(self,loc,text1):
        self.find_elements(loc).send_keys(text1)
